package com.example.sqldemo.mapper;


import com.example.sqldemo.pojo.AuditModel;
import com.example.sqldemo.pojo.RuleInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.cursor.Cursor;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;

@Mapper
public interface SqlMapper {

    void createTable3();


    Cursor<HashMap<String, Object>> select();

    List<LinkedHashMap<String, Object>> selectByParams(String sql,List<Object> params);

    void createTable(String sql);

    void createTable2(String sql);

    List<HashMap<String, Object>> select2(@Param("ruleInfo") RuleInfo ruleInfo);

    void batchInsert(ArrayList<AuditModel> list);

    Cursor<HashMap<String, Object>> getAuditData();

    void insert(@Param("item")AuditModel auditModel);
}
